<?php

/* Monkake specific configuration */

Monkake::Set('debug', true);

Monkake::Set('site_404_controller',  'site404');
Monkake::Set('fatal_error_message',  'An error has occured whie processing your request.');

Monkake::Set('root_directory',    '/home/monkey/public_html/subdomains/mysmiliesnu/');

Monkake::Set('monkake_directory',    Monkake::Get('root_directory') . 'monkake/');

if ( preg_match('/^\/lade/', $page_name) ) {
	Monkake::Set('app_directory', Monkake::Get('root_directory') . 'lade/');

	Monkake::Set('url_intercepts', array(
		'^/lade$' => array(
			'handlers' => array('_site', 'index'),
			'view' => 'index'),
		'^/lade/$' => array(
			'handlers' => array('_site', 'index'),
			'view' => 'index'),
		'^/lade/list$' => array(
			'handlers' => array('_site', 'list'),
			'view' => 'list'),
		'^/lade/add$' => array(
			'handlers' => array('_site', 'add'),
			'view' => 'add'),
		'^/lade/delete$' => array(
			'handlers' => array('_site', 'delete'),
			'view' => 'delete'),
		'^/lade/edit$' => array(
			'handlers' => array('_site', 'edit'),
			'view' => 'edit'),
		'^/lade/single_edit$' => array(
			'handlers' => array('_site', 'single_edit'),
			'view' => 'single_edit'),
		'^/lade/login$' => array(
			'handlers' => array('_site', 'login'),
			'view' => 'login'),
		'^/lade/logout$' => array(
			'handlers' => array('_site', 'logout'),
			'view' => ''),
	));

	Monkake::Set('site_url',  '/lade/');
} else {
	Monkake::Set('app_directory', Monkake::Get('root_directory') . 'site/');

	Monkake::Set('url_intercepts', array(
		'^/?$' => array(
						'handlers' => array('_site', 'news'),
						'view' => 'news'),
		'^/index' => array(
						'handlers' => array('_site', 'index'),
						'view' => 'news'),
		'^/login' => array(
						'handlers' => array('_site', 'login'),
						'view' => 'login'),
		'^/logout' => array(
						'handlers' => array('_site', 'logout'),
						'view' => 'logout'),
		'^/set_tag' => array(
						'handlers' => array('_site', 'set_tag'),
						'view' => 'set_tag'),
		'^/set_favorite' => array(
						'handlers' => array('_site', 'set_favorite'),
						'view' => 'favorites'),
		'^/set_code' => array(
						'handlers' => array('_site', 'set_code'),
						'view' => 'set_code'),
		'^/(smilies|smileys)' => array(
						'handlers' => array('_site', 'smileys'),
						'view' => 'smileys'),
		'^/(smilies|smileys)/(Genres|Categories|Users)' => array(
						'handlers' => array('_site', 'archive_type'),
						'view' => 'smileys'),
		'^/smiley/edit' => array(
						'handlers' => array('_site', 'smiley/edit_smiley'),
						'view' => 'smiley/edit_smiley'),
		'^/smiley' => array(
						'handlers' => array('_site', 'smiley/smiley'),
						'view' => 'smiley/smiley'),
		'^/add_tags' => array(
						'handlers' => array('_site', 'add_tags'),
						'view' => 'add_tags'),
		'^/page' => array(
						'handlers' => array('_site', 'page'),
						'view' => 'page'),
		'^/post' => array(
						'handlers' => array('_site', 'post'),
						'view' => 'post'),
		'^/view_posts' => array(
						'handlers' => array('_site', 'view_posts'),
						'view' => 'view_posts'),
		'^/minify' => array(
						'handlers' => array('_site', 'minify'),
						'view' => 'minify'),
		'^/favorites' => array(
						'handlers' => array('_site', 'favorites'),
						'view' => 'favorites'),
	));

	Monkake::Set('site_url',  '/');
}

Monkake::Set('images_url', Monkake::Get('site_url') . 'images/');
Monkake::Set('images_directory', Monkake::Get('root_directory') . 'doc-root/images/');
Monkake::Set('css_directory', Monkake::Get('root_directory') . 'doc-root/css/');
Monkake::Set('css_compressed_directory', Monkake::Get('css_directory') . 'compressed/');
Monkake::Set('js_directory', Monkake::Get('root_directory') . 'doc-root/js/');
Monkake::Set('js_compressed_directory', Monkake::Get('js_directory') . 'compressed/');

Monkake::Set('smileys_directory', '/home/monkey/public_html/s/');

Monkake::Set('class_directory',          Monkake::Get('monkake_directory') . 'classes/');

Monkake::Set('class_override_directory', Monkake::Get('app_directory') . 'classes/');
Monkake::Set('handler_directory',          Monkake::Get('app_directory') . 'handlers/');
Monkake::Set('view_directory',           Monkake::Get('app_directory') . 'views/');
Monkake::Set('models_directory',           Monkake::Get('app_directory') . 'models/');

Monkake::Set('site_handler', '_site');

Monkake::Set('handler_append',      '.handler.php');
Monkake::Set('controller_append', '.ctrl.php');
Monkake::Set('view_append',       '.view.php');

/* Site specific configuration */

Monkake::Set('DB_ADDR', 'localhost');
Monkake::Set('DB_USER', 'mysmilies');
Monkake::Set('DB_PASS', 'mys#1357s');
Monkake::Set('DB_NAME', 'monki');

Monkake::Set('DB_TABLE_PREFIX', 'msnu_');

Monkake::Set('cache_directory', Monkake::Get('monkake_directory') . '_cache/');

Monkake::Set('upload_directory', Monkake::Get('monkake_directory') . 'doc-root/upload/');

Monkake::Set('image_servers', array(
	'i1.mysmilies.com',
	'i2.mysmilies.com',
	'i3.mysmilies.com',
	'i4.mysmilies.com',
	'i5.mysmilies.com',
));

Monkake::Set('cookie_domain', '.mysmilies.com');
Monkake::Set('minify_js', false);
Monkake::Set('minify_css', false);

Monkake::Set('post_limit', 10);

Monkake::Set('smiley_servers', array(
	//"smilies.crowd9.com",
			//smilies:39jZh4@ftp.smilies.crowd9.com - robert@crowd9.com -
	//undergroundfreakz.com/s/
		//burns:smile4me@undergroundfreakz.com - admin@twilightsagarpg.com
	// http://smilearchive.com/s/
		// wackoburns:Kiteman9@ftp.smilearchive.com - theanswerpool@aol.com
	// smilies.blazemint.com/s/
		// mysmilie:whatyeah@62.19.45.9 - enemious@gmail.com
	//'smilies.vidahost.com',
	/*'smilearchive.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'smilies.crowd9.com'*/
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'smilearchive.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'undergroundfreakz.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.blazemint.com/s',
	'smilies.crowd9.com'
	));



Monkake::Set('msnu_tables',
array(
	array(
		'Name' => 'msnu_section',
		'SimpleName' => 'section',
		'DisplayName' => 'Wordlet Sections',
		'DefaultOrderByColumn' => 'sortorder',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'value',
		'SimpleColumn' => 'name',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'name',
				'SimpleName' => 'name',
				'DisplayName' => 'Name',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'AllowGet' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'value',
				'SimpleName' => 'value',
				'DisplayName' => 'Value',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'sortorder',
				'SimpleName' => 'sortorder',
				'DisplayName' => 'Order',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'NumericUpDown' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValueQuery' => 'select Max(sortorder)+1 from lade_section',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),
	array(
		'Name' => 'msnu_wordlet',
		'SimpleName' => 'wordlet',
		'DisplayName' => 'Wordlets',
		'DefaultOrderByColumn' => 'name',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'name',
		'SimpleColumn' => 'name',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'section_id',
				'SimpleName' => 'section_id',
				'DisplayName' => 'Section',
				'DefaultAscDesc' => 'asc',
				//'Listed' => false,
				//'Editable' => false,
				'Addable' => true,
				'FkTable' => 'msnu_section',
				'FkColumn' => 'id',
				'UseParentPk' => true
			),
			array(
				'Name' => 'name',
				'SimpleName' => 'name',
				'DisplayName' => 'Name',
				'Listed' => true,
				'Editable' => false,
				'Addable' => true,
				'AllowGet' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'value',
				'SimpleName' => 'value',
				'DisplayName' => 'Value',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'InputType' => 'textarea',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),
	array(
		'Name' => 'msnu_lade_asection',
		'SimpleName' => 'asection',
		'DisplayName' => 'Admin Sections',
		'DefaultOrderByColumn' => 'sortorder',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'dname',
		'SimpleColumn' => 'name',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'name',
				'SimpleName' => 'name',
				'DisplayName' => 'Name',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'dname',
				'SimpleName' => 'dname',
				'DisplayName' => 'Display Name',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'sortorder',
				'SimpleName' => 'sortorder',
				'DisplayName' => 'Order',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'NumericUpDown' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValueQuery' => 'select Max(sortorder)+1 from msnu_lade_asection',
				'AllowGet' => true,
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
				'AllowGet' => true,
			),
		)
	),
	array(
		'Name' => 'msnu_grp',
		'SimpleName' => 'grp',
		'DisplayName' => 'Groups',
		'DefaultOrderByColumn' => 'name',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'dname',
		'SimpleColumn' => 'name',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'name',
				'SimpleName' => 'name',
				'DisplayName' => 'Name',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'dname',
				'SimpleName' => 'dname',
				'DisplayName' => 'Display Name',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),
	array(
		'Name' => 'msnu_usr',
		'SimpleName' => 'user',
		'DisplayName' => 'Users',
		'DefaultOrderByColumn' => 'email',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'email',
		'SimpleColumn' => 'id',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'email',
				'SimpleName' => 'email',
				'DisplayName' => 'Email',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'pswd',
				'SimpleName' => 'pass',
				'DisplayName' => 'Password',
				'Listed' => false,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'grp_id',
				'SimpleName' => 's_grp',
				'DisplayName' => 'Group',
				'FkColumn' => 'grpid',
				'FkTable' => 'ladedgm_grp',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'IsNull' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'dname',
				'SimpleName' => 'dname',
				'DisplayName' => 'Display Name',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),
	/*array(
		'Name' => 'ladedgm_rght',
		'SimpleName' => 'rights',
		'DisplayName' => 'Rights',
		'DefaultOrderByColumn' => 'id',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'asection_id',
		'SimpleColumn' => 'id',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'asection_id',
				'SimpleName' => 'section',
				'DisplayName' => 'Section',
				'FkColumn' => 'id',
				'FkTable' => 'ladedgm_asection',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
			array(
				'Name' => 'grp_id',
				'SimpleName' => 'grp',
				'DisplayName' => 'Group',
				'FkColumn' => 'id',
				'FkTable' => 'ladedgm_grp',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'IsNull' => true,
			),
			array(
				'Name' => 'radd',
				'SimpleName' => 'add',
				'DisplayName' => 'Add',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultValue' => 'True',
			),
			array(
				'Name' => 'redit',
				'SimpleName' => 'edit',
				'DisplayName' => 'Edit',
				'Listed' => true,

				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultValue' => 'True',
			),
			array(
				'Name' => 'rlist',
				'SimpleName' => 'list',
				'DisplayName' => 'List',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultValue' => 'True',
			),
			array(
				'Name' => 'rdelete',
				'SimpleName' => 'delete',
				'DisplayName' => 'Delete',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultValue' => 'True',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),*/
	array(
		'Name' => 'msnu_blog',
		'SimpleName' => 'blog',
		'DisplayName' => 'Blogs',
		'DefaultOrderByColumn' => 'id',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'dname',
		'SimpleColumn' => 'id',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'usr_id',
				'SimpleName' => 'usr',
				'DisplayName' => 'User',
				'FkColumn' => 'id',
				'FkTable' => 'msnu_usr',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
			array(
				'Name' => 'dname',
				'SimpleName' => 'title',
				'DisplayName' => 'Title',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),
	array(
		'Name' => 'msnu_smiley',
		'SimpleName' => 'smiley',
		'DisplayName' => 'Smilies',
		'DefaultOrderByColumn' => 'id',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'path',
		'SimpleColumn' => 'id',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'usr_id',
				'SimpleName' => 'usr',
				'DisplayName' => 'User',
				'FkColumn' => 'id',
				'FkTable' => 'msnu_usr',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
			array(
				'Name' => 'path',
				'SimpleName' => 'path',
				'DisplayName' => 'Path',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),
	array(
		'Name' => 'msnu_sgenre',
		'SimpleName' => 'tag',
		'DisplayName' => 'Tags',
		'DefaultOrderByColumn' => 'id',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'dname',
		'SimpleColumn' => 'id',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'dname',
				'SimpleName' => 'dname',
				'DisplayName' => 'Name',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
		)
	),
	array(
		'Name' => 'msnu_smileysgenre',
		'SimpleName' => 'tag',
		'DisplayName' => 'Tags',
		'DefaultOrderByColumn' => 'id',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'id',
		'SimpleColumn' => 'id',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'smiley_id',
				'SimpleName' => 'smiley_id',
				'DisplayName' => 'Smiley',
				'FkColumn' => 'id',
				'FkTable' => 'msnu_smiley',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
			array(
				'Name' => 'sgenre_id',
				'SimpleName' => 'sgenre_id',
				'DisplayName' => 'Tag',
				'FkColumn' => 'id',
				'FkTable' => 'msnu_sgenre',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
		)
	),
	array(
		'Name' => 'msnu_post',
		'SimpleName' => 'post',
		'DisplayName' => 'Posts',
		'DefaultOrderByColumn' => 'id',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'title',
		'SimpleColumn' => 'id',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'blog_id',
				'SimpleName' => 'blog',
				'DisplayName' => 'Blog',
				'FkColumn' => 'blogid',
				'FkTable' => 'msnu_blog',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
			array(
				'Name' => 'usr_id',
				'SimpleName' => 'usr',
				'DisplayName' => 'User',
				'FkColumn' => 'usrid',
				'FkTable' => 'msnu_usr',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
			),
			array(
				'Name' => 'title',
				'SimpleName' => 'title',
				'DisplayName' => 'Title',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
			),
			array(
				'Name' => 'body',
				'SimpleName' => 'body',
				'DisplayName' => 'Body',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'InputType' => 'textarea',
			),
			array(
				'Name' => 'created',
				'SimpleName' => 'posted',
				'DisplayName' => 'Posted',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValueQuery' => 'select NOW()',
				'ValidationType' => 'datetime',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),
	/*array(
		'Name' => 'ladedgm_event',
		'SimpleName' => 'event',
		'DisplayName' => 'Events',
		'DefaultOrderByColumn' => 'scheduled',
		'PrimaryKeyColumn' => 'id',
		'DisplayColumn' => 'title',
		'SimpleColumn' => 'id',
		//'RevisionTable' => 'ladedgm_newsrev',
		'Columns' => array(
			array(
				'Name' => 'id',
				'SimpleName' => 'id',
				'DisplayName' => 'ID',
				'DefaultAscDesc' => 'asc',
				//'RevisionColumn' => 'news_id',
			),
			array(
				'Name' => 'usr_id',
				'SimpleName' => 'usr',
				'DisplayName' => 'User',
				'FkColumn' => 'id',
				'FkTable' => 'ladedgm_usr',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				//'RevisionColumn' => 'usr_id',
			),
			array(
				'Name' => 'title',
				'SimpleName' => 'title',
				'DisplayName' => 'Title',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				//'RevisionColumn' => 'title',
			),
			array(
				'Name' => 'location',
				'SimpleName' => 'location',
				'DisplayName' => 'Location',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				//'RevisionColumn' => 'title',
			),
			array(
				'Name' => 'directions',
				'SimpleName' => 'directions',
				'DisplayName' => 'Directions',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'FormNote' => 'Go to <a href="http://maps.google.com" target="_blank">Google Maps</a>,<br />
								look up address,<br />
								click the "Get Directions" link (top left),<br />
								click the "Get Directions" button,<br />
								click the "Link" link (top right) and copy the link in the top box.',
				//'RevisionColumn' => 'title',
			),
			array(
				'Name' => 'link',
				'SimpleName' => 'link',
				'DisplayName' => 'Default Link',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'FormNote' => '<strong>Waring:</strong> links must start with "http://" if linking to another site<br/>
								(i.e. "www.discgolf.com" will not work, instead use "http://www.discgolf.com"',
			),
			array(
				'Name' => 'flyerimg',
				'SimpleName' => 'flyerimg',
				'DisplayName' => 'Flyer Image Link',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'InputType' => 'image',
				'UploadDirectory' => Monkake::Get('upload_directory') . 'flyers/',
				'UploadVirtualDirectory' => '/upload/flyers/',
				'UploadFilename' => '{name}_{datetime}.{ext}',
				'UploadImageDefaultWidthMax' => 800,
			),
			array(
				'Name' => 'flyerpdf',
				'SimpleName' => 'flyerpdf',
				'DisplayName' => 'Flyer PDF Link',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'InputType' => 'upload',
				'UploadDirectory' => Monkake::Get('upload_directory') . 'flyers/',
				'UploadVirtualDirectory' => '/upload/flyers/',
				'UploadFilename' => '{name}_{datetime}.{ext}',
			),
			array(
				'Name' => 'signup',
				'SimpleName' => 'signup',
				'DisplayName' => 'Signup Link',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'InputType' => 'upload',
				'UploadDirectory' => Monkake::Get('upload_directory') . 'signup/',
				'UploadVirtualDirectory' => '/upload/signup/',
				'UploadFilename' => '{name}_{datetime}.{ext}',
			),
			array(
				'Name' => 'results',
				'SimpleName' => 'results',
				'DisplayName' => 'Results Link',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'InputType' => 'upload',
				'UploadDirectory' => Monkake::Get('upload_directory') . 'results/',
				'UploadVirtualDirectory' => '/upload/results/',
				'UploadFilename' => '{name}_{datetime}.{ext}',
			),
			array(
				'Name' => 'scheduled',
				'SimpleName' => 'scheduled',
				'DisplayName' => 'Scheduled Date',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValueQuery' => 'select NOW()',
				'ValidationType' => 'date',
				//'RevisionColumn' => 'posted',
			),
			array(
				'Name' => 'scheduleend',
				'SimpleName' => 'scheduleend',
				'DisplayName' => 'Scheduled End Date',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'DefaultAscDesc' => 'asc',
				//'DefaultValueQuery' => 'select NOW()',
				'ValidationType' => 'date',
				//'RevisionColumn' => 'posted',
			),
			array(
				'Name' => 'month',
				'SimpleName' => 'month',
				'DisplayName' => 'Only Display Month?',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '0',
			),
			array(
				'Name' => 'enabled',
				'SimpleName' => 'enabled',
				'DisplayName' => 'Enabled',
				'Listed' => true,
				'Editable' => true,
				'Addable' => true,
				'Boolean' => true,
				'DefaultAscDesc' => 'asc',
				'DefaultValue' => '1',
			),
		)
	),*/
));

Monkake::Set('msnu_sections', array(
	/*array(
		'Name' => 'grpright',
		'DisplayName' => 'Rights',
		'Table' => 'ladedgm_rght',
	),*/
	array(
		'Name' => 'group',
		'DisplayName' => 'Groups',
		'Table' => 'msnu_grp',
		//'SubSection' => 'grpright',
	),
	array(
		'Name' => 'user',
		'DisplayName' => 'Users',
		'Table' => 'msnu_usr',
	),
	array(
		'Name' => 'wordlets',
		'DisplayName' => 'Wordlets',
		'Table' => 'msnu_wordlet',
	),
	array(
		'Name' => 'section',
		'DisplayName' => 'Wordlet Sections',
		'Table' => 'msnu_section',
		'SubSection' => 'wordlets',
	),
	array(
		'Name' => 'a_section',
		'DisplayName' => 'Admin Sections',
		'Table' => 'msnu_lade_asection',
	),
	array(
		'Name' => 'post',
		'DisplayName' => 'Posts',
		'Table' => 'msnu_post',
		'SubSection' => '',
	),
	array(
		'Name' => 'blog',
		'DisplayName' => 'Blogs',
		'Table' => 'msnu_blog',
		'SubSection' => 'post',
	),
	array(
		'Name' => 'smileysgenre',
		'DisplayName' => 'Smiley Tags',
		'Table' => 'msnu_smileysgenre',
		'SubSection' => '',
	),
	array(
		'Name' => 'smiley',
		'DisplayName' => 'Smilies',
		'Table' => 'msnu_smiley',
		'SubSection' => 'smileysgenre',
	),
	array(
		'Name' => 'tag',
		'DisplayName' => 'Tags',
		'Table' => 'msnu_sgenre',
		'SubSection' => '',
	),
	/*array(
		'Name' => 'event',
		'DisplayName' => 'Events',
		'Table' => 'ladedgm_event',
	),*/
));
